<?php
use Illuminate\Database\Seeder;
use App\Models\Article;


class ArticleTableSeeder extends Seeder {

	public function run() {
		DB::table('articles')->delete();

		for ($i = 0; $i < 20; $i++) {
			Article::create([
				'title'      => '新闻新闻' . $i,
				'author'       => 'admin' . $i,
				'createTime' => time(),
				'editTime'   => time(),
			]);
		}
	}
}